package com.yanqu.road.server.cmd.estatewar.task;

import com.yanqu.road.server.gameplayer.GamePlayer;
import com.yanqu.road.server.manger.player.EstateWarMgr;
import com.yanqu.road.utils.executor.GeneralTask;

public class UserInfoChangeTask extends GeneralTask {

	private GamePlayer player;

	private int type;

	private int pos;

	private boolean isUpdateAbility;

	public UserInfoChangeTask(GamePlayer player, int type, int pos, boolean isUpdateAbility){
		this.player = player;
		this.type = type;
		this.pos = pos;
		this.isUpdateAbility = isUpdateAbility;
	}

	@Override
	public void doRun() {
		EstateWarMgr.onUserInfoChange(player, type, pos, isUpdateAbility);
	}
}
